package sctu.edu.java.year2016.team01.renxinpeng.day20160605.chapter11_2;

import java.util.Scanner;
/**
 * Created by Zero on 2016/6/6.
 * 并在调用该方法的主方法中使用try...catch语句捕捉可能发生的异常。
 */
public class Client {

    public static void main(String[] args) {



        Scanner scan=new Scanner(System.in);
        Number  number=new Number();
        System.out.println("请输入两个数字：");
        int x=scan.nextInt();
        int y=scan.nextInt();


        try{

            System.out.println(""+number.count(x, y));

        }catch (Exception problem){


            problem.printStackTrace();
        }
    }
}
